/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.jsc.app.base.dao;

import java.util.List;
import java.util.Map;

/**
 *
 * @author Jeff
 */
public interface Dao<D> {
    public void save(D domain);

    public void update(D domain);

    public void delete(D domain);

//    public void deleteByExample(D domain);
//
//    public void deleteList(List<D> dtls);

//    public void saveOrUpdate(D domain);
//
//    public void saveOrUpdateList(List<D> domain);

    public D findById(Object id);

    public List<D> getAll();

    public List<D> findByExample(D domain);

    public List<D> findByProperty(Map<String, Object> p);
}
